/*
 * Fige.h
 *
 *  Created on: 12 nov. 2012
 *      Author: guegan
 */

#ifndef FIGE_H_
#define FIGE_H_

#include "EtatRobot.h"

using namespace std;

class Fige: public EtatRobot {

private:
	static Fige* _instance;
	static EtatRobot* _etatPrecedent;

public:

	Fige() : EtatRobot("Fige") {}

	void repartir(){
		robot->setEtatRobot(_etatPrecedent);
	}


	static Fige* instance(){
		if(_instance == NULL)
			_instance = new Fige();

		return _instance;
	}

	static void setEtatPrecedent(EtatRobot* etatPrecedent) {
		_etatPrecedent = etatPrecedent;
		//erreur au build : undefined reference to `Fige::_etatPrecedent'
	}

};


#endif /* FIGE_H_ */

